package com.dd.cloud.user.entity.doctor;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 医生订单收入明细表
 *
 * @author Lx
 * @version 1.0
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "医生订单收入明细表")
public class DoctorOrderIncomeDetail implements Serializable {

    private static final long serialVersionUID = 10086L;

    /**
     * 医生订单收入表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 收益标题
     */
    @Column(comment = "收益标题")
    private String title;

    /**
     * 医生id
     */
    @Column(comment = "医生id")
    private Integer doctorId;

    /**
     * 订单号
     */
    @Column(comment = "订单号")
    private String orderNo;

    /**
     * 处方号
     */
    @Column(comment = "处方号")
    private String tencode;

    /**
     * 收入
     */
    @Column(comment = "收入")
    private Integer income;

    /**
     * 税后收入
     */
    @Column(comment = "税后收入")
    private Integer afterTaxIncome;

    /**
     * 收入状态 1冻结中/入账中 2可提现 3资金退回/入账失败
     */
    @Column(comment = "收入状态")
    private Integer status;

    /**
     * 收入类型
     */
    @Column(comment = "收入类型")
    private Integer type;

    /**
     * 是否退款记录 1是 0否
     */
    @Column(comment = "是否退款记录 1是 0否")
    private Integer refund = 0;

    /**
     * 订单总收入
     */
    @Column(comment = "订单总收入")
    private Integer totalIncome;

    /**
     * 药品原价
     */
    @Column(comment = "药品原价")
    private Integer presOriginalPrice;

    /**
     * 订单总税后收入
     */
    @Column(comment = "订单总税后收入")
    private Integer afterTaxTotalIncome;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    @Column(comment = "修改时间")
    private LocalDateTime updateDate;

    /**
     * 状态 1.待结算 2.结算中 3.完成结算 4.退款不予结算 5.未达到提现条件不予结算
     */
    @Column(comment = "状态  1.待结算 2.结算中 3.完成结算 4.退款不予结算 5.未达到提现条件不予结算 ",defaultValue = "1")
    private Integer settlementStatus;

    /**
     * 提现金额
     */
    @Column(comment ="提现金额",defaultValue = "0")
    private Integer withdrawalAmount;


}
